home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / nroff~06.zoo / config.h < prev    next >
C/C++ Source or Header  |  1992-07-16  |  2KB  |  93 lines

  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3.  
  4. /*
  5.  * $Id: config.h,v 1.2 1992/07/16 10:38:32 rosenkra Exp $
  6.  *
  7.  * $Log: config.h,v $
  8.  * Revision 1.2  1992/07/16  10:38:32  rosenkra
  9.  * port to gcc, add tm,ie,el
  10.  *
  11.  */
  12.  
  13. #define REGISTER        /* nothing for now */
  14.  
  15. /*
  16.  *    for diffent os, define tos, unix, or minix. for gemdos, pick
  17.  *    a compiler (alcyon, mwc, etc). see makefile for VERSFLAGS.
  18.  *
  19.  *    for atari TOS, do:    cc -Dtos -Dalcyon ...
  20.  *
  21.  *    for minix, do:        cc -Dminix -DatariST ...    (ST minix)
  22.  *                cc -Dminix ...            (PC minix)
  23.  *
  24.  *    for unix, do:        cc -Dunix ...            (generic)
  25.  *                cc -Dunix -DBSD...        (BSD)
  26.  *
  27.  *    nroff uses index/rindex. you may need -Dindex=strchr -Drindex=strrchr
  28.  *    as well. this file is included in "nroff.h" which gets included in all
  29.  *    sources so any definitions you need should be added here.
  30.  *
  31.  *    all os-dependent code is #ifdef'ed with GEMDOS, MINIX_ST, MINIX_PC,
  32.  *    MINIX, or UNIX. most of the differences deal with i/o only.
  33.  */
  34. #ifdef ALCYON
  35. # ifndef tos
  36. #  define tos
  37. # endif
  38. # ifndef alcyon
  39. #  define alcyon
  40. # endif
  41. #endif
  42.  
  43. #ifdef tos
  44. # define GEMDOS
  45. # undef minix
  46. # undef unix
  47. # undef MINIX
  48. # undef MINIX_ST
  49. # undef MINIX_PC
  50. # undef UNIX
  51. /*#define register*/
  52. #endif
  53.  
  54. #ifdef alcyon
  55. # ifndef ALCYON
  56. #  define ALCYON            /* for gemdos version, alcyon C */
  57. # endif
  58. # ifndef GEMDOS
  59. #  define GEMDOS
  60. # endif
  61. #endif
  62.  
  63. #ifdef minix
  64. # define MINIX
  65. # undef tos
  66. # undef unix
  67. # undef GEMDOS
  68. # undef MINIX_ST
  69. # undef MINIX_PC
  70. # undef UNIX
  71. # ifdef atariST
  72. #  define MINIX_ST
  73. # else
  74. #  define MINIX_PC
  75. # endif
  76. #endif
  77.  
  78. #ifdef unix
  79. /* just in case <ctype.h> does not define it (slightly different anyway) */
  80. #define tolower(x)    (isupper(x)?((x)-'A'+'a'):(x))
  81. # undef tos
  82. # undef minix
  83. # undef GEMDOS
  84. # undef MINIX_ST
  85. # undef MINIX_PC
  86. # ifndef UNIX
  87. #  define UNIX
  88. # endif
  89. #endif
  90.  
  91. #endif /*CONFIG_H*/
  92.  
  93.